package cn.ainit.sys.socket;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

@Service
public class MsgServiceImpl implements MsgService{
	
	MsgDao msgDao;
	
	@Resource
	public void setMsgDao(MsgDao msgDao) {
		this.msgDao = msgDao;
	}
	
	@Override
	public Map<String, List<Map<String, String>>> loadMsg() throws Exception {
		return msgDao.loadMsg();
	}
	
	@Override
	public void upTS(List<String> msgids) throws Exception {
		msgDao.upTs(msgids);
	}
	
	@Override
	public List<Map<String, Object>> loadMsgList() {
		return msgDao.loadMsgListDao();
	}
	
}
